package com.cnc.fd.hiber;

import java.io.Serializable;
import java.util.Date;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class SyncServerTask implements Serializable {

    /** identifier field */
    private String taskId;

    /** nullable persistent field */
    private String serverIp;

    /** nullable persistent field */
    private String appSrv;

    /** nullable persistent field */
    private String taskStatus;

    /** persistent field */
    private long syncTaskCount;

    /** persistent field */
    private long finishTaskCount;

    /** nullable persistent field */
    private Date createTime;

    /** nullable persistent field */
    private Date finishTime;

    /** full constructor */
    public SyncServerTask(String taskId, String serverIp, String appSrv, String taskStatus, long syncTaskCount, long finishTaskCount, Date createTime, Date finishTime) {
        this.taskId = taskId;
        this.serverIp = serverIp;
        this.appSrv = appSrv;
        this.taskStatus = taskStatus;
        this.syncTaskCount = syncTaskCount;
        this.finishTaskCount = finishTaskCount;
        this.createTime = createTime;
        this.finishTime = finishTime;
    }

    /** default constructor */
    public SyncServerTask() {
    }

    /** minimal constructor */
    public SyncServerTask(String taskId, long syncTaskCount, long finishTaskCount) {
        this.taskId = taskId;
        this.syncTaskCount = syncTaskCount;
        this.finishTaskCount = finishTaskCount;
    }

    public String getTaskId() {
        return this.taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getServerIp() {
        return this.serverIp;
    }

    public void setServerIp(String serverIp) {
        this.serverIp = serverIp;
    }

    public String getAppSrv() {
        return this.appSrv;
    }

    public void setAppSrv(String appSrv) {
        this.appSrv = appSrv;
    }

    public String getTaskStatus() {
        return this.taskStatus;
    }

    public void setTaskStatus(String taskStatus) {
        this.taskStatus = taskStatus;
    }

    public long getSyncTaskCount() {
        return this.syncTaskCount;
    }

    public void setSyncTaskCount(long syncTaskCount) {
        this.syncTaskCount = syncTaskCount;
    }

    public long getFinishTaskCount() {
        return this.finishTaskCount;
    }

    public void setFinishTaskCount(long finishTaskCount) {
        this.finishTaskCount = finishTaskCount;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getFinishTime() {
        return this.finishTime;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("taskId", getTaskId())
            .toString();
    }

}
